package org.hegang.design.first.builderpattern;

/**
 * @Classname: Coustom
 * @Description:
 * @Date: 2021/4/21 0:21
 * @Author: gang.he
 * @Email: SmileSkyLife@outlook.com
 * @LastModified:
 * @Version: v1.0.0
 */
public class Custom {


    public static void main(String[] args) {
        Builder builder = new Worker();
//        builder.BuildA();
//        builder.BuildD();
//        builder.BuildB();
//        builder.BuildC();
//        BedRoom bedRoom = builder.getBedRoom();
        BedRoom bedRoom = builder.BuildA().BuildB().BuildD().BuildC().getBedRoom();
        Leader leader = new Leader();
        leader.Build(new Worker());
    }
}
